package com.example.demo.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "news_info")
public class News {
    @Id
    private Integer id;
    private String title;
    private String summary;
    private java.util.Date publishTime;
    private Integer readCount;
    private String iconType;
    private Boolean isDeleted;
    private java.util.Date createTime;
    private java.util.Date updateTime;
}